package com.gdth.core.dao;

import java.util.List;

/**
 * 
 * @author Arvin
 *
 * @param <T>
 */
public interface BaseDao<T> {
	
	public abstract long insert(T entity);
	
	public abstract long insert(List<T> entitys);
	
	public abstract void delete(int id);
	
	public abstract void delete(Integer... ids);
	
	public abstract void update(T entity);
	
	public abstract T get(int id);
	
	public abstract List<T> rawQuery(String sql, String[] arg0);
	
	public abstract List<T> find();
	
	public abstract List<T> fing(String[] arg0, String arg1, String[] arg2, String arg3, String arg4, String arg5,String arg6);

	public abstract boolean isExist(String sql, String[] arg0);
	
	public void execSql(String sql, Object[] agr0);
}
